package lq.auth.studyauth.handler;

import lq.common.handler.BaseExceptionHandler;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @program: cloud-study
 *
 * @description: 通用类型捕获
 * 当前微服务系统独有的异常类型捕获在本类捕获
 * BaseExceptionHandler通用的异常类型捕获
 * 注解@RestControllerAdvice 其本身用@ControllerAdvice 和注释 @ResponseBody。
 * 设置了最高优先级
 * @author: LQ
 * @create: 2020-10-12 15:59
 */
@RestControllerAdvice
@Order(value = Ordered.HIGHEST_PRECEDENCE)
public class GlobalExceptionHandler extends BaseExceptionHandler {
}
